package ru.drugdrugu.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class POSTBean implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "POST_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	private long id;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "PC_ID")
	private PCBean pc;

	public PCBean getPc() {
		return pc;
	}

	public void setPc(PCBean pc) {
		this.pc = pc;
	}

}
